<template>
  <simple-layout title="充值记录">
    <div v-for="item, index in payList" :key="index" class="pay-list">
      <div>
        <div><span class="pay-l-money">充值</span><span class="pay-r-money">¥{{item.money}}</span></div>
        <div class="pay-time">{{item.time}}</div>
      </div>
      <div class="pay-list-r">
        {{item.status}}
      </div>
    </div>
  </simple-layout>
</template>


<script>
  import AuthService from '../../service/auth';
  import SimpleLayout from '../../components/SimpleLayout';

  export default {
    name: "Login",
    components: {
      //someComponent
      SimpleLayout
    },
    props: {},
    data() {
      return {
        msg: "Hello Vue.js",
        phone: '',
        code: '',
        password: '',
        numCode: '发送验证码',


        payList : [{
          money: 1000,
          time: "2019-01-01 00:00:00",
          status: "充值成功"
        }, {
          money: 1000,
          time: "2019-01-01 00:00:00",
          status: "充值成功"
        }, {
          money: 1000,
          time: "2019-01-01 00:00:00",
          status: "充值成功"
        }]
      }
    },
    computed: {},
    watch: {},
    mounted: function () {
    },
    methods: {
    }
  }
</script>


<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  .pay-list{
    border-top: 1px solid #ccc;
    display: flex;
    margin: auto;
  }
  .pay-list>*{
    width: 50%;
    text-align: initial;
    padding: 2rem 1rem;
  }
  .pay-list-r{
    text-align: right;
    margin: auto;
    font-size: 18px;
    font-weight: bold;
    color: #4d4de6;;
  }
  .pay-l-money{
    font-size: 22px;
    margin-right: 10px;
  }
  .pay-r-money{
    color:#ef0505;
    font-size: 30px;
    font-weight: bold;
  }
  .pay-time{
    color: #b9b6b6;
    margin-top: 1rem;
    font-size: 20px;
  }
  div.pay-list:last-child{
    border-bottom: 1px solid #ccc;
  }

</style>
